package com.lufei.message_system.Data.UserVD;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@Schema(name = "用户更新DTO")
public class UserUpdateDTO {
    @NotBlank(message = "姓名不能为空")
    @Size(max = 50, message = "姓名长度不能超过50")
    @Schema(description = "姓名", requiredMode = RequiredMode.REQUIRED, example = "张三")
    private String name;

    @NotNull(message = "大学名不能为空")
    @Schema(description = "大学名", requiredMode = RequiredMode.REQUIRED, example = "大连民族大学")
    private String universityName;

    @NotNull(message = "学院名不能为空")
    @Schema(description = "学院名", requiredMode = RequiredMode.REQUIRED, example = "计算机学院")
    private String collegeName;

    @NotNull(message = "专业名不能为空")
    @Schema(description = "专业名", requiredMode = RequiredMode.REQUIRED, example = "软件工程")
    private String majorName;

    @Schema(description = "班级", requiredMode = RequiredMode.REQUIRED, example = "1001")
    private String classId;

    @Size(max = 10, message = "年级长度不能超过10")
    @Schema(description = "年级", requiredMode = RequiredMode.REQUIRED, example = "2023")
    private String grade;
}